package com.hinner.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: PengFei.He
 * @Date: 2025/1/20 23:05
 * @Function:
 */
@Configuration
public class MybatisPlusConfig {

    /**
     * 开启mp的分页功能
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
